home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD020b.dsk
/
APPLE SIMON.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
3KB
|
113 lines
5 GOSUB 7000
10 GR
20 COLOR= 2
30 FOR A1 = 0 TO 18
40 HLIN 0,18 AT A1
50 NEXT A1
60 COLOR= 11
70 FOR A2 = 0 TO 18
80 HLIN 20,38 AT A2
90 NEXT A2
100 COLOR= 9
110 FOR A3 = 20 TO 38
120 HLIN 0,18 AT A3
130 NEXT A3
140 COLOR= 12
150 FOR A4 = 20 TO 38
160 HLIN 20,38 AT A4
170 NEXT A4
180 CLEAR
190 S = -16336
200 COUNT = COUNT +1
210 B = INT( RND(1) *4 +1)
220 IF B = 1 THEN H$ = "Y"
230 IF B = 2 THEN H$ = "U"
240 IF B = 3 THEN H$ = "H"
250 IF B = 4 THEN H$ = "J"
260 IF COUNT = 1 THEN G$ = H$
270 IF COUNT >1 THEN G$ = G$ +H$
280 FOR S2 = 1 TO COUNT
290 IF MID$ (G$,S2,1) = "Y" THEN GOSUB 1000
300 IF MID$ (G$,S2,1) = "U" THEN GOSUB 2000
310 IF MID$ (G$,S2,1) = "H" THEN GOSUB 3000
320 IF MID$ (G$,S2,1) = "J" THEN GOSUB 4000
330 NEXT S2
340 FOR S3 = 1 TO COUNT
350 GET Z$
360 IF Z$ < > MID$ (G$,S3,1) THEN GOTO 5000
370 IF Z$ = "Y" THEN GOSUB 1000
380 IF Z$ = "U" THEN GOSUB 2000
390 IF Z$ = "H" THEN GOSUB 3000
400 IF Z$ = "J" THEN GOSUB 4000
410 NEXT S3
420 FOR PAUSE = 1 TO 1000: NEXT PAUSE
430 GOTO 200
1000 COLOR= 15
1010 FOR D1 = 4 TO 15
1020 HLIN 4,15 AT D1
1030 NEXT D1
1040 FOR E1 = 1 TO 25
1050 Z = PEEK(S)
1060 NEXT E1
1070 COLOR= 2
1080 FOR F1 = 4 TO 15
1090 HLIN 4,15 AT F1
1100 NEXT F1
1110 RETURN
2000 COLOR= 15
2010 FOR D2 = 4 TO 15
2020 HLIN 24,35 AT D2
2030 NEXT D2
2040 FOR E2 = 1 TO 25
2050 Z = PEEK(S) - PEEK(S)
2060 NEXT E2
2070 COLOR= 11
2080 FOR F2 = 4 TO 15
2090 HLIN 24,35 AT F2
2100 NEXT F2
2110 RETURN
3000 COLOR= 15
3010 FOR D3 = 24 TO 35
3020 HLIN 4,15 AT D3
3030 NEXT D3
3040 FOR E3 = 1 TO 25
3050 Z = PEEK(S) - PEEK(S) + PEEK(S)
3060 NEXT E3
3070 COLOR= 9
3080 FOR F3 = 24 TO 35
3090 HLIN 4,15 AT F3
3100 NEXT F3
3110 RETURN
4000 COLOR= 15
4010 FOR D4 = 24 TO 35
4020 HLIN 24,35 AT D4
4030 NEXT D4
4040 FOR E4 = 1 TO 25
4050 Z = PEEK(S) - PEEK(S) + PEEK(S) - PEEK(S)
4060 NEXT E4
4070 COLOR= 12
4080 FOR F4 = 24 TO 35
4090 HLIN 24,35 AT F4
4100 NEXT F4
4110 RETURN
5000 HOME
5010 PRINT
5020 PRINT "YOUR SCORE = ";COUNT -1
5030 FOR PAUSE = 1 TO 4000: NEXT PAUSE
6000 HOME
6010 PRINT
6020 PRINT "DO YOU WANT TO PLAY AGAIN?"
6030 PRINT "PRESS 'Y' FOR YES AND 'N' FOR NO"
6040 GET W$
6045 HOME
6050 IF W$ = "Y" THEN GOTO 180
6060 IF W$ = "N" THEN TEXT : HOME : END
7000 HOME
7005 PRINT "THIS IS A GAME THAT REQUIRES"
7010 PRINT "GREAT CONCENTRATION. USE THE"
7020 PRINT "Y,U,H,AND J KEYS AND TRY TO "
7030 PRINT "FOLLOW THE COMPUTER'S PATTERN."
7040 PRINT
7050 PRINT "HIT ANY KEY TO BEGIN.": GET AA$
7090 HOME
7100 RETURN